//
//  PlayHeaderView.m
//  FoodList
//
//  Created by Jason on 16/4/14.
//  Copyright © 2016年 王金晶. All rights reserved.
//

#import "PlayHeaderView.h"

@implementation PlayHeaderView

- (void)setHeaderModel:(PlayHeaderModel *)headerModel {
    _headerModel = headerModel;
    [self.playImage sd_setImageWithURL:[NSURL URLWithString:headerModel.coverLarge]];
    [self.authorImg sd_setImageWithURL:[NSURL URLWithString:headerModel.smallLogo]];
    self.authorImg.layer.masksToBounds = YES;
    self.authorImg.layer.cornerRadius = 12;
    self.authorNameLab.font = [UIFont systemFontOfSize:returnFont(Height)];
    self.authorNameLab.text = headerModel.nickname;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
